<?php /* Smarty version 2.6.12, created on 2008-11-18 14:23:26
         compiled from main/popup_image_selection.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'main/popup_image_selection.tpl', 3, false),array('modifier', 'strip_tags', 'main/popup_image_selection.tpl', 46, false),array('modifier', 'escape', 'main/popup_image_selection.tpl', 46, false),array('modifier', 'substitute', 'main/popup_image_selection.tpl', 75, false),)), $this); ?>
<?php func_load_lang($this, "main/popup_image_selection.tpl","txt_select_source_of_image,lbl_file_on_server,lbl_browse_,lbl_apply,lbl_file_on_local_computer,lbl_apply,txt_max_file_size_warning,lbl_file_on_internet,lbl_apply,lbl_image_selection,lbl_close_window"); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php echo smarty_function_config_load(array('file' => ($this->_tpl_vars['skin_config'])), $this);?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Image selection</title>
	<link rel="stylesheet" href="<?php echo $this->_tpl_vars['SkinDir']; ?>
/skin1_admin.css" />
</head>
<body<?php echo $this->_tpl_vars['reading_direction_tag']; ?>
>
<table cellpadding="10" cellspacing="0" width="100%">
<tr>
	<td>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/popup_files_js.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php ob_start(); ?>
<form action="image_selection.php" method="post" name="imageselform" enctype="multipart/form-data">

<input type="hidden" name="type" value="<?php echo $this->_tpl_vars['type']; ?>
" />
<input type="hidden" name="imgid" value="<?php echo $this->_tpl_vars['imgid']; ?>
" />
<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['id']; ?>
" />
<input type="hidden" name="source" value="" />

<table cellpadding="0" cellspacing="0">
<tr>
	<td colspan="2">
<table border="0">
<tr>
	<td colspan="2"><?php echo $this->_tpl_vars['lng']['txt_select_source_of_image']; ?>
:</td>
</tr>

<tr>
	<td width="50%">

<table width="100%">
<tr>
	<td colspan="2" bgcolor="#EEEEEE">
	<table cellpadding="0" cellspacing="0" width="100%"><tr><th height="16" align="left">&nbsp;&nbsp;<?php echo $this->_tpl_vars['lng']['lbl_file_on_server']; ?>
</th></tr></table>
	</td>
</tr>

<tr>
	<td>
	<input type="hidden" name="newpath" id="newpath" />
	<input type="text" size="25" name="newfilename" id="newfilename" readonly="readonly" />
	<input type="button" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_browse_'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onclick="javascript: popup_images('newfilename', 'newpath');" />
	</td>
	<td align="right">
	<input type="button" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_apply'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onclick="javascript: document.imageselform.source.value='S'; document.imageselform.submit();" />
	</td>
</tr>
</table>

	</td>
</tr>
<tr>
	<td>

<table width="100%">
<tr>
	<td colspan="2" bgcolor="#EEEEEE">
	<table cellpadding="0" cellspacing="0" width="100%"><tr><th height="16" align="left">&nbsp;&nbsp;<?php echo $this->_tpl_vars['lng']['lbl_file_on_local_computer']; ?>
</th></tr></table>
	</td>
</tr>

<tr>
	<td><input type="file" size="25" name="userfile" /></td>
	<td align="right">
	<input type="button" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_apply'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onclick="javascript: document.imageselform.source.value='L'; document.imageselform.submit();" />
	</td>
</tr>

<?php if ($this->_tpl_vars['upload_max_filesize']): ?>
<tr>
	<td colspan="2"><?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_max_file_size_warning'])) ? $this->_run_mod_handler('substitute', true, $_tmp, 'size', $this->_tpl_vars['upload_max_filesize']) : smarty_modifier_substitute($_tmp, 'size', $this->_tpl_vars['upload_max_filesize'])); ?>
</td>
</tr>
<?php endif; ?>
</table>

	</td>
</tr>

<tr>
	<td colspan="2">

<table width="100%">
<tr>
	<td colspan="2" bgcolor="#EEEEEE">
	<table cellpadding="0" cellspacing="0" width="100%"><tr><th height="16" align="left">&nbsp;&nbsp;<?php echo $this->_tpl_vars['lng']['lbl_file_on_internet']; ?>
</th></tr></table>
	</td>
</tr>

<tr>
	<td colspan="2"><input type="text" size="60" name="fileurl" /></td>
</tr>
<tr>
	<td colspan="2" align="right">
	<input type="button" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_apply'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onclick="javascript: document.imageselform.source.value='U'; document.imageselform.submit();" />
	</td>
</tr>
</table>

	</td>
</tr>

</table>
	</td>
</tr>
</table>

</form>

<?php $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean(); ?>

<div align="center"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('content' => $this->_smarty_vars['capture']['dialog'],'title' => $this->_tpl_vars['lng']['lbl_image_selection'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></div>

<p align="right"><a href="javascript: window.close();"><b><?php echo $this->_tpl_vars['lng']['lbl_close_window']; ?>
</b></a></p>

</body>
</html>
